package GUI;

import javax.swing.JPanel;
import javax.swing.JLabel;
import com.jgoodies.forms.factories.DefaultComponentFactory;
import com.sun.org.glassfish.external.arc.Taxonomy;

import java.awt.Font;

import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTextPane;
import javax.swing.JTextField;
import javax.swing.JTextArea;
import javax.swing.JScrollBar;
import java.awt.ScrollPane;
import java.awt.Scrollbar;
import javax.swing.JButton;
/**
 * This class creates instance of ViewRequestOutPut 	
 * to display when needed
 * @author Natali
 *
 */
public class ViewRequestOutPut extends JPanel {
 static final long serialVersionUID = 1L;
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;
	private JTextField textField_4;
	private JTextField textField_5;
	private JTextField textField_6;
	private JTextField textField_7;
	private JButton button;
	
	/**
	 * the constructor that initialize the ViewRequestOutPut
	 */
	public ViewRequestOutPut() {
		setLayout(null);
		
		JLabel label = new JLabel("");
		label.setFont(new Font("Arial", Font.BOLD | Font.ITALIC, 16));
		label.setBounds(113, 44, 88, 14);
		add(label);
		
		JLabel lblRequestOutPut = new JLabel("Request output");
		lblRequestOutPut.setFont(new Font("Arial", Font.BOLD, 16));
		lblRequestOutPut.setBounds(175, 11, 140, 22);
		add(lblRequestOutPut);
		
		JLabel lblRequestNumber =new JLabel("Request number");
		lblRequestNumber.setFont(new Font("Arial", Font.BOLD, 12));
		lblRequestNumber.setBounds(29, 71, 111, 14);
		add(lblRequestNumber);
		
		textField = new JTextField();
		textField.setBounds(248, 69, 192, 20);
		add(textField);
		textField.setColumns(10);
		
		JLabel lblNewJgoodiesLabel =new JLabel("system :");
		lblNewJgoodiesLabel.setFont(new Font("Arial", Font.BOLD, 12));
		lblNewJgoodiesLabel.setBounds(29, 106, 88, 14);
		add(lblNewJgoodiesLabel);
		
		textField_1 = new JTextField();
		textField_1.setColumns(10);
		textField_1.setBounds(248, 100, 192, 20);
		add(textField_1);
		
		JLabel lblDescriptionOfThe = new JLabel("Description of the requested change");
		lblDescriptionOfThe.setFont(new Font("Arial", Font.BOLD, 12));
		lblDescriptionOfThe.setBounds(29, 144, 224, 14);
		add(lblDescriptionOfThe);
		
		JTextArea textArea = new JTextArea();
		textArea.setBounds(248, 131, 192, 51);
		add(textArea);
		
		JLabel lblReasonForRequest = new JLabel("Reason for request");
		lblReasonForRequest.setFont(new Font("Arial", Font.BOLD, 12));
		lblReasonForRequest.setBounds(25, 212, 115, 14);
		add(lblReasonForRequest);
		
		JTextArea textArea_1 = new JTextArea();
		textArea_1.setBounds(248, 193, 192, 51);
		add(textArea_1);
		
		JLabel lblComments =new JLabel("Comments");
		lblComments.setFont(new Font("Arial", Font.BOLD, 12));
		lblComments.setBounds(29, 272, 92, 14);
		add(lblComments);
		
		JTextArea textArea_2 = new JTextArea();
		textArea_2.setBounds(248, 255, 192, 51);
		add(textArea_2);
		
		JLabel lblStatus = new JLabel("status");
		lblStatus.setFont(new Font("Arial", Font.BOLD, 12));
		lblStatus.setBounds(29, 327, 92, 14);
		add(lblStatus);
		
		textField_2 = new JTextField();
		textField_2.setColumns(10);
		textField_2.setBounds(248, 321, 192, 20);
		add(textField_2);
		
		JLabel lblNewJgoodiesLabel_1 =new JLabel("inisiator name");
		lblNewJgoodiesLabel_1.setFont(new Font("Arial", Font.BOLD, 12));
		lblNewJgoodiesLabel_1.setBounds(25, 367, 92, 14);
		add(lblNewJgoodiesLabel_1);
		
		textField_3 = new JTextField();
		textField_3.setColumns(10);
		textField_3.setBounds(248, 365, 192, 20);
		add(textField_3);
		
		textField_4 = new JTextField();
		textField_4.setColumns(10);
		textField_4.setBounds(248, 408, 192, 20);
		add(textField_4);
		
		JLabel lblInisiatorMail = new JLabel("inisiator mail");
		lblInisiatorMail.setFont(new Font("Arial", Font.BOLD, 12));
		lblInisiatorMail.setBounds(25, 411, 92, 14);
		add(lblInisiatorMail);
		
		JLabel lblNewJgoodiesLabel_2 =new JLabel("inisiator role ");
		lblNewJgoodiesLabel_2.setFont(new Font("Arial", Font.BOLD, 12));
		lblNewJgoodiesLabel_2.setBounds(25, 451, 92, 14);
		add(lblNewJgoodiesLabel_2);
		
		textField_5 = new JTextField();
		textField_5.setColumns(10);
		textField_5.setBounds(248, 449, 192, 20);
		add(textField_5);
		
		JButton button = new JButton("cancel");
		button.setFont(new Font("Tahoma", Font.BOLD, 13));
		button.setBounds(16, 579, 124, 33);
		add(button);
		
		JLabel lblSta = new JLabel("current stage");
		lblSta.setFont(new Font("Arial", Font.BOLD, 12));
		lblSta.setBounds(25, 493, 92, 14);
		add(lblSta);
		
		textField_6 = new JTextField();
		textField_6.setColumns(10);
		textField_6.setBounds(248, 490, 192, 20);
		add(textField_6);
		
		JLabel lblNewJgoodiesLabel_3 = new JLabel("Expected date of completion the stage");
		lblNewJgoodiesLabel_3.setFont(new Font("Arial", Font.BOLD, 12));
		lblNewJgoodiesLabel_3.setBounds(25, 542, 247, 14);
		add(lblNewJgoodiesLabel_3);
		
		textField_7 = new JTextField();
		textField_7.setColumns(10);
		textField_7.setBounds(248, 540, 192, 20);
		add(textField_7);
		
		
		//JScrollPane sp = new JScrollPane(textArea);   // JTextArea is placed in a JScrollPane.
		//JPanel f = new JPanel();
		//f.getRootPane().add(sp);

	}
	
	/**
	 * 
	 * @return JTextField with the request number
	 */
	public JTextField getTextField() {
		return textField;
	}
	/**
	 * 
	 * @param textField to set the request number
	 */
	public void setTextField(JTextField textField) {
		this.textField = textField;
	}
	/**
	 * 
	 * @return JTextField with the system
	 */
	public JTextField getTextField_1() {
		return textField_1;
	}
	/**
	 * 
	 * @param textField_1 to set the system
	 */
	public void setTextField_1(JTextField textField_1) {
		this.textField_1 = textField_1;
	}
	/**
	 * 
	 * @return
	 */
	public JTextField getTextField_2() {
		return textField_2;
	}
	public void setTextField_2(JTextField textField_2) {
		this.textField_2 = textField_2;
	}
	public JTextField getTextField_3() {
		return textField_3;
	}
	public void setTextField_3(JTextField textField_3) {
		this.textField_3 = textField_3;
	}
	public JTextField getTextField_4() {
		return textField_4;
	}
	public void setTextField_4(JTextField textField_4) {
		this.textField_4 = textField_4;
	}
	public JTextField getTextField_5() {
		return textField_5;
	}
	public void setTextField_5(JTextField textField_5) {
		this.textField_5 = textField_5;
	}
	public JTextField getTextField_6() {
		return textField_6;
	}
	public void setTextField_6(JTextField textField_6) {
		this.textField_6 = textField_6;
	}
	public JTextField getTextField_7() {
		return textField_7;
	}
	public void setTextField_7(JTextField textField_7) {
		this.textField_7 = textField_7;
	}
	public JButton getButton() {
		return button;
	}
	public void setButton(JButton button) {
		this.button = button;
	}
	
}
